import Vuex from "vuex";

const store = new Vuex.Store({
  state: () => ({
    userInfo: {},
    indexSelect: 'all',
  }),
  getters: {},
  mutations: {
    setUserinfo(state, userInfo) {
      state.userInfo = userInfo;
    },
    setindexSelect(state, indexSelect) {
      state.indexSelect = indexSelect;
    },
  },
  actions: {},
});

export default () => store;
